<?php

namespace App\Http\Requests;

class ListRequest extends BasicRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'page' => 'required',
            'page_size' => 'required'
        ];
    }

    public function messages()
    {
        return [
            'page.required' => __('message.required',[
                'p' => __('key.page')
            ]),
            'page_size.required' =>  __('message.required',[
                'p' => __('key.page_size')
            ])
        ];
    }

}
